package com.WebProject.mapper;

import com.WebProject.pojo.t_car;
import com.WebProject.pojo.t_car_Interger;
import com.WebProject.pojo.t_car_zu;
import com.WebProject.pojo.t_user;

import java.lang.reflect.Array;
import java.util.ArrayList;

/**
 * @PACKAGE_NAME: com.WebProject.mapper
 * @NAME: UserMapper
 * @USER: ZhouYongCheng
 * @DATE: 2022/7/28
 * @TIME: 14:27
 * @Description: 普通用户的Mapper
 */
public interface UserMapper {

    //租车
    public Boolean updateZuCarStatus(String username,String car_number);
    //还车
    public Boolean updateHuanCarStatus(String car_number);
    //用户注册
    public Boolean registerUser(t_user user);
    //获取车子的全部信息
    public ArrayList<t_car> QueryAllCarInfo();

    //获取全部用户
    public ArrayList<t_user> QueryAllUserInfo();
    //根据车型搜索
    public ArrayList<t_car> QueryAllTypeCar(String Type);
    //根据品牌搜索
    public ArrayList<t_car> QueryAllBrandCar(String Brand);
    //查看用户租车记录
    public ArrayList<t_car_zu> QuerUserZuInfo(String user_name);
    //根据车牌查询全部信息
    public t_car QueryCarInfoById(String car_number);
    //查询订单
    public ArrayList<t_car_zu> QueryCarOrder(String username);

    //注销用户
    public Boolean deleteUser(String username);

    //根据用户名返回一条记录
    public t_user QueryUserInfo(String username);

    //修改密码
    public Boolean changePassword(String username,String password);

    //排序
    public ArrayList<t_car> QueryCar(String order);

    //类型与品牌
    public ArrayList<t_car> QueryAllBrandAndCategory(String brand,String category);
}
